home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 6 / CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso / cucd / prog / gnu-c / fd2inline-1.1 / include / inline / alib.h next >
C/C++ Source or Header  |  1996-07-12  |  590b  |  24 lines

  1. #ifndef _INLINE_ALIB_H
  2. #define _INLINE_ALIB_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #define BeginIO(ioReq) \
  9. ({                                    \
  10.     struct IORequest *_BeginIO_request = (ioReq);            \
  11.     LP1NR(0x1e, BeginIO, struct IORequest *, _BeginIO_request, a1,    \
  12.     , _BeginIO_request->io_Device);                    \
  13. })
  14.  
  15. #define NewList(list) \
  16. ({                                    \
  17.   struct List *_NewList_list = (list);                    \
  18.   _NewList_list->lh_TailPred = (struct Node *)_NewList_list;        \
  19.   _NewList_list->lh_Head = (struct Node *)&_NewList_list->lh_Tail;    \
  20.   _NewList_list->lh_Tail = 0;                        \
  21. })
  22.  
  23. #endif /* _INLINE_ALIB_H */
  24.